package app.common.dao;
import java.util.ArrayList;
import java.util.List;

import cn.lily.com.container.data.Record;
import cn.lily.com.exception.YaconException;
import cn.lily.esb.framework.drivers.db.bean.ControlDAO;
public class Leo_can_report_sizeBean extends ControlDAO implements Cloneable {
	private static final long serialVersionUID = 1L;
	public Leo_can_report_sizeBean() throws YaconException {
		super();
		setTableName("LEO_CAN_REPORT_SIZE");
	}
	String  fleo_can_size_size_exp;
	String  fleo_can_size_total_exp;
	String  fleo_can_size_total;
	String  fleo_can_date_inf;
	String  fres_time;
	String  fleo_can_size_size;

	public void setLeo_can_size_size_exp( String leo_can_size_size_exp)throws YaconException{
		setFieldData("leo_can_size_size_exp",leo_can_size_size_exp,NUMBER);
		this.fleo_can_size_size_exp=leo_can_size_size_exp;
	}

	public String getLeo_can_size_size_exp(){
		if ( this.fleo_can_size_size_exp == null){
			return "";
		}
		else {
			return this.fleo_can_size_size_exp;
		}
	}

	public void setLeo_can_size_total_exp( String leo_can_size_total_exp)throws YaconException{
		setFieldData("leo_can_size_total_exp",leo_can_size_total_exp,NUMBER);
		this.fleo_can_size_total_exp=leo_can_size_total_exp;
	}

	public String getLeo_can_size_total_exp(){
		if ( this.fleo_can_size_total_exp == null){
			return "";
		}
		else {
			return this.fleo_can_size_total_exp;
		}
	}

	public void setLeo_can_size_total( String leo_can_size_total)throws YaconException{
		setFieldData("leo_can_size_total",leo_can_size_total,TEXT);
		this.fleo_can_size_total=leo_can_size_total;
	}

	public String getLeo_can_size_total(){
		if ( this.fleo_can_size_total == null){
			return "";
		}
		else {
			return this.fleo_can_size_total;
		}
	}

	public void setLeo_can_date_inf( String leo_can_date_inf)throws YaconException{
		setFieldData("leo_can_date_inf",leo_can_date_inf,TEXT);
		this.fleo_can_date_inf=leo_can_date_inf;
	}

	public String getLeo_can_date_inf(){
		if ( this.fleo_can_date_inf == null){
			return "";
		}
		else {
			return this.fleo_can_date_inf;
		}
	}

	public void setRes_time( String res_time)throws YaconException{
		setFieldData("res_time",res_time,DATE);
		this.fres_time=res_time;
	}

	public String getRes_time(){
		if ( this.fres_time == null){
			return "";
		}
		else {
			return this.fres_time;
		}
	}

	public void setLeo_can_size_size( String leo_can_size_size)throws YaconException{
		setFieldData("leo_can_size_size",leo_can_size_size,TEXT);
		this.fleo_can_size_size=leo_can_size_size;
	}

	public String getLeo_can_size_size(){
		if ( this.fleo_can_size_size == null){
			return "";
		}
		else {
			return this.fleo_can_size_size;
		}
	}

	public  List<Leo_can_report_sizeBean> findListBeans(String sSqlWhere)throws YaconException {
		List<Leo_can_report_sizeBean> listBeans = new ArrayList<Leo_can_report_sizeBean>();
		findTable = findTableByWhere(sSqlWhere);
		while (findTable.next())
		{
			Leo_can_report_sizeBean fDaoBean  = new Leo_can_report_sizeBean();
			fDaoBean.fleo_can_size_size_exp = findTable.getString("leo_can_size_size_exp");
			fDaoBean.fleo_can_size_total_exp = findTable.getString("leo_can_size_total_exp");
			fDaoBean.fleo_can_size_total = findTable.getString("leo_can_size_total");
			fDaoBean.fleo_can_date_inf = findTable.getString("leo_can_date_inf");
			fDaoBean.fres_time = findTable.getString("res_time");
			fDaoBean.fleo_can_size_size = findTable.getString("leo_can_size_size");
			fDaoBean.operate_mode = "edit";
			listBeans.add(fDaoBean);
		}
		return listBeans;
	}

	public Leo_can_report_sizeBean findBean(String sSqlWhere)throws YaconException {
		findTable = findTableByWhere(sSqlWhere);
		if (findTable.next())
		{
			Leo_can_report_sizeBean fDaoBean  = new Leo_can_report_sizeBean();
			fDaoBean.fleo_can_size_size_exp = findTable.getString("leo_can_size_size_exp");
			fDaoBean.fleo_can_size_total_exp = findTable.getString("leo_can_size_total_exp");
			fDaoBean.fleo_can_size_total = findTable.getString("leo_can_size_total");
			fDaoBean.fleo_can_date_inf = findTable.getString("leo_can_date_inf");
			fDaoBean.fres_time = findTable.getString("res_time");
			fDaoBean.fleo_can_size_size = findTable.getString("leo_can_size_size");
			fDaoBean.operate_mode = "edit";
			return fDaoBean;
		}else
			return null;
	}

	public void setViewRecord(Record viewRecord) throws YaconException{
		if (viewRecord.getString("leo_can_size_size_exp") != null)
			setLeo_can_size_size_exp(viewRecord.getString("leo_can_size_size_exp"));
		if (viewRecord.getString("leo_can_size_total_exp") != null)
			setLeo_can_size_total_exp(viewRecord.getString("leo_can_size_total_exp"));
		if (viewRecord.getString("leo_can_size_total") != null)
			setLeo_can_size_total(viewRecord.getString("leo_can_size_total"));
		if (viewRecord.getString("leo_can_date_inf") != null)
			setLeo_can_date_inf(viewRecord.getString("leo_can_date_inf"));
		if (viewRecord.getString("res_time") != null)
			setRes_time(viewRecord.getString("res_time"));
		if (viewRecord.getString("leo_can_size_size") != null)
			setLeo_can_size_size(viewRecord.getString("leo_can_size_size"));
	}

}
